package main

/*
	自动证书 @todo 2020年2月15日16:06:24
	主要涉及autotls包
*/
import (
	"github.com/gin-gonic/autotls"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.New()


	r.GET("/stu", func(context *gin.Context) {
		context.HTML(http.StatusOK,"index.html",gin.H{
			"title":"hello,gin",
			"date":"2020-02-15",
		})
	})

	autotls.Run(r,"www.itpp.tk")
}
